package com.gitee.wsl.transform.encode.pinyin.trie

class DefaultToken(private val payloadToken: PayloadToken<String>) : Token(payloadToken.fragment) {

    override val isMatch: Boolean
        get() = payloadToken.isMatch

    override val emit: Emit?
        get() {
            val emit = payloadToken.emit?:return null
            return Emit(emit.start, emit.end, emit.keyword)
        }
}
